MacBinary | 1995-05-22 | 1.8 KB | [TEXT/MMCC] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
1% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Mon May 22 21:51:38 1995, modified Mon May 22 21:51:38 1995, creator 'MMCC', type ASCII, 1118 bytes "ThreadContext.h" , at 0x4de 410 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | dearkID | deark: macbinary | default | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [MMCC] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 54 68 72 65 61 64 | 43 6f 6e 74 65 78 74 2e |..Thread|Context.|
|00000010| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 01 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 04 5e 00 | 00 01 9a ab e6 f0 2a ab |......^.|......*.|
|00000060| e6 f0 2a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..*.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e9 b7 00 00 |........|........|
|00000080| 0d 23 69 66 6e 64 65 66 | 20 5f 5f 54 48 52 45 41 |.#ifndef| __THREA|
|00000090| 44 43 4f 4e 54 45 58 54 | 5f 5f 0d 23 64 65 66 69 |DCONTEXT|__.#defi|
|000000a0| 6e 65 20 5f 5f 54 48 52 | 45 41 44 43 4f 4e 54 45 |ne __THR|EADCONTE|
|000000b0| 58 54 5f 5f 0d 0d 63 6c | 61 73 73 20 54 45 78 63 |XT__..cl|ass TExc|
|000000c0| 65 70 74 69 6f 6e 3b 0d | 0d 23 69 6e 63 6c 75 64 |eption;.|.#includ|
|000000d0| 65 20 3c 54 68 72 65 61 | 64 73 2e 68 3e 0d 0d 70 |e <Threa|ds.h>..p|
|000000e0| 61 73 63 61 6c 20 4f 53 | 45 72 72 20 54 68 72 65 |ascal OS|Err Thre|
|000000f0| 61 64 43 72 65 61 74 65 | 4e 6f 74 69 66 79 48 61 |adCreate|NotifyHa|
|00000100| 6e 64 6c 65 72 28 54 68 | 72 65 61 64 49 44 20 63 |ndler(Th|readID c|
|00000110| 72 65 61 74 65 64 54 68 | 72 65 61 64 2c 20 6c 6f |reatedTh|read, lo|
|00000120| 6e 67 20 74 68 72 65 61 | 64 43 72 65 61 74 65 52 |ng threa|dCreateR|
|00000130| 65 66 63 6f 6e 29 3b 0d | 0d 63 6c 61 73 73 20 54 |efcon);.|.class T|
|00000140| 54 68 72 65 61 64 43 6f | 6e 74 65 78 74 0d 7b 0d |ThreadCo|ntext.{.|
|00000150| 70 72 69 76 61 74 65 3a | 0d 09 73 74 61 74 69 63 |private:|..static|
|00000160| 20 6c 6f 6e 67 09 09 66 | 43 72 65 61 74 65 64 54 | long..f|CreatedT|
|00000170| 68 72 65 61 64 73 3b 0d | 09 73 74 61 74 69 63 20 |hreads;.|.static |
|00000180| 6c 6f 6e 67 09 09 66 53 | 6c 65 65 70 69 6e 67 54 |long..fS|leepingT|
|00000190| 68 72 65 61 64 73 3b 0d | 09 0d 70 75 62 6c 69 63 |hreads;.|..public|
|000001a0| 3a 0d 09 09 09 09 09 54 | 54 68 72 65 61 64 43 6f |:......T|ThreadCo|
|000001b0| 6e 74 65 78 74 28 6c 6f | 6e 67 20 74 68 72 65 61 |ntext(lo|ng threa|
|000001c0| 64 43 72 65 61 74 65 52 | 65 66 63 6f 6e 29 20 3a |dCreateR|efcon) :|
|000001d0| 0d 23 69 66 20 5f 5f 4d | 57 45 52 4b 53 5f 5f 0d |.#if __M|WERKS__.|
|000001e0| 09 09 09 09 09 66 4c 6f | 63 61 6c 44 65 73 74 72 |.....fLo|calDestr|
|000001f0| 75 63 74 6f 72 43 68 61 | 69 6e 28 6e 69 6c 29 2c |uctorCha|in(nil),|
|00000200| 0d 23 65 6e 64 69 66 0d | 09 09 09 09 09 66 54 68 |.#endif.|.....fTh|
|00000210| 72 65 61 64 43 72 65 61 | 74 65 52 65 66 63 6f 6e |readCrea|teRefcon|
|00000220| 28 74 68 72 65 61 64 43 | 72 65 61 74 65 52 65 66 |(threadC|reateRef|
|00000230| 63 6f 6e 29 2c 0d 09 09 | 09 09 09 66 45 78 63 65 |con),...|...fExce|
|00000240| 70 74 69 6f 6e 53 74 61 | 63 6b 28 6e 69 6c 29 2c |ptionSta|ck(nil),|
|00000250| 0d 09 09 09 09 09 66 53 | 6c 65 65 70 69 6e 67 28 |......fS|leeping(|
|00000260| 66 61 6c 73 65 29 0d 09 | 09 09 09 09 7b 20 2b 2b |false)..|....{ ++|
|00000270| 66 43 72 65 61 74 65 64 | 54 68 72 65 61 64 73 3b |fCreated|Threads;|
|00000280| 20 7d 3b 0d 09 7e 54 54 | 68 72 65 61 64 43 6f 6e | };..~TT|hreadCon|
|00000290| 74 65 78 74 28 29 20 7b | 20 2d 2d 66 43 72 65 61 |text() {| --fCrea|
|000002a0| 74 65 64 54 68 72 65 61 | 64 73 3b 20 69 66 28 66 |tedThrea|ds; if(f|
|000002b0| 53 6c 65 65 70 69 6e 67 | 29 20 2d 2d 66 53 6c 65 |Sleeping|) --fSle|
|000002c0| 65 70 69 6e 67 54 68 72 | 65 61 64 73 3b 20 7d 0d |epingThr|eads; }.|
|000002d0| 09 0d 09 76 6f 69 64 09 | 09 09 53 77 61 70 49 6e |...void.|..SwapIn|
|000002e0| 28 54 68 72 65 61 64 49 | 44 29 3b 0d 09 76 6f 69 |(ThreadI|D);..voi|
|000002f0| 64 09 09 09 53 77 61 70 | 4f 75 74 28 54 68 72 65 |d...Swap|Out(Thre|
|00000300| 61 64 49 44 29 3b 0d 09 | 76 6f 69 64 09 09 09 44 |adID);..|void...D|
|00000310| 69 73 70 6f 73 65 43 6f | 6e 74 65 78 74 28 54 68 |isposeCo|ntext(Th|
|00000320| 72 65 61 64 49 44 29 3b | 0d 0d 09 6c 6f 6e 67 09 |readID);|...long.|
|00000330| 09 09 54 68 72 65 61 64 | 43 72 65 61 74 65 52 65 |..Thread|CreateRe|
|00000340| 66 63 6f 6e 28 29 20 63 | 6f 6e 73 74 20 7b 20 72 |fcon() c|onst { r|
|00000350| 65 74 75 72 6e 20 66 54 | 68 72 65 61 64 43 72 65 |eturn fT|hreadCre|
|00000360| 61 74 65 52 65 66 63 6f | 6e 3b 20 7d 0d 09 0d 09 |ateRefco|n; }....|
|00000370| 73 74 61 74 69 63 20 6c | 6f 6e 67 09 09 54 6f 74 |static l|ong..Tot|
|00000380| 61 6c 54 68 72 65 61 64 | 73 28 29 20 7b 20 72 65 |alThread|s() { re|
|00000390| 74 75 72 6e 20 66 43 72 | 65 61 74 65 64 54 68 72 |turn fCr|eatedThr|
|000003a0| 65 61 64 73 3b 20 7d 0d | 09 73 74 61 74 69 63 20 |eads; }.|.static |
|000003b0| 6c 6f 6e 67 09 09 53 6c | 65 65 70 69 6e 67 54 68 |long..Sl|eepingTh|
|000003c0| 72 65 61 64 73 28 29 20 | 7b 20 72 65 74 75 72 6e |reads() |{ return|
|000003d0| 20 66 53 6c 65 65 70 69 | 6e 67 54 68 72 65 61 64 | fSleepi|ngThread|
|000003e0| 73 3b 20 7d 0d 09 73 74 | 61 74 69 63 20 6c 6f 6e |s; }..st|atic lon|
|000003f0| 67 09 09 41 63 74 69 76 | 65 54 68 72 65 61 64 73 |g..Activ|eThreads|
|00000400| 28 29 20 7b 20 72 65 74 | 75 72 6e 20 54 6f 74 61 |() { ret|urn Tota|
|00000410| 6c 54 68 72 65 61 64 73 | 28 29 20 2d 20 53 6c 65 |lThreads|() - Sle|
|00000420| 65 70 69 6e 67 54 68 72 | 65 61 64 73 28 29 3b 20 |epingThr|eads(); |
|00000430| 7d 0d 09 0d 70 72 69 76 | 61 74 65 3a 0d 0d 23 69 |}...priv|ate:..#i|
|00000440| 66 20 5f 5f 4d 57 45 52 | 4b 53 5f 5f 0d 09 76 6f |f __MWER|KS__..vo|
|00000450| 69 64 2a 09 09 09 66 4c | 6f 63 61 6c 44 65 73 74 |id*...fL|ocalDest|
|00000460| 72 75 63 74 6f 72 43 68 | 61 69 6e 3b 0d 23 65 6e |ructorCh|ain;.#en|
|00000470| 64 69 66 0d 09 63 6f 6e | 73 74 20 6c 6f 6e 67 09 |dif..con|st long.|
|00000480| 09 66 54 68 72 65 61 64 | 43 72 65 61 74 65 52 65 |.fThread|CreateRe|
|00000490| 66 63 6f 6e 3b 0d 09 54 | 45 78 63 65 70 74 69 6f |fcon;..T|Exceptio|
|000004a0| 6e 2a 09 09 66 45 78 63 | 65 70 74 69 6f 6e 53 74 |n*..fExc|eptionSt|
|000004b0| 61 63 6b 3b 0d 09 75 6e | 73 69 67 6e 65 64 20 6c |ack;..un|signed l|
|000004c0| 6f 6e 67 09 66 53 6c 65 | 65 70 69 6e 67 20 3a 20 |ong.fSle|eping : |
|000004d0| 31 3b 0d 7d 3b 0d 0d 23 | 65 6e 64 69 66 0d 00 00 |1;.};..#|endif...|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000510| 00 00 04 39 19 42 61 63 | 6b 20 54 6f 20 46 75 74 |...9.Bac|k To Fut|
|00000520| 75 72 65 73 20 28 69 73 | 73 2e 20 32 32 29 00 00 |ures (is|s. 22)..|
|00000530| 0f 54 68 72 65 61 64 43 | 6f 6e 74 65 78 74 2e 68 |.ThreadC|ontext.h|
|00000540| 02 00 00 00 54 45 58 54 | 4d 4d 43 43 01 00 00 34 |....TEXT|MMCC...4|
|00000550| 00 00 54 45 58 54 4d 4d | 43 43 01 00 00 34 01 00 |..TEXTMM|CC...4..|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 ab e6 90 07 00 00 | 04 5e 00 00 01 9a 69 6e |........|.^....in|
|00000580| 65 29 00 00 00 00 00 00 | 00 00 01 5c 25 00 00 00 |e)......|...\%...|
|00000590| 04 3e 10 64 65 76 65 6c | 6f 70 20 54 65 6d 70 6c |.>.devel|op Templ|
|000005a0| 61 74 65 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ate.....|........|
|000005b0| 00 00 00 00 01 5e 25 00 | 00 00 04 44 00 00 00 00 |.....^%.|...D....|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 01 60 |........|.......`|
|000005e0| 25 00 00 00 04 48 00 00 | 00 00 00 00 00 00 00 00 |%....H..|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 03 | 00 04 00 63 00 13 01 d6 |........|...c....|
|00000630| 02 72 00 63 00 13 01 d6 | 02 72 ac a9 86 44 00 00 |.r.c....|.r...D..|
|00000640| 00 b7 00 00 00 b7 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|00000650| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000660| 00 00 00 46 00 dc bc 88 | 15 ac 00 00 00 1c 00 46 |...F....|.......F|
|00000670| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000680| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000690| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+